//
//  FirstXibViewContoller.m
//  11-Xib
//
//  Created by GivenBmli on 16/7/28.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "FirstXibViewContoller.h"
//签订代理人,制定代理人,实现协议方法
//指定代理人,在Xib中可以通过控件向File'sOwner去指定
// 相当于self,
@interface FirstXibViewContoller ()<UITextFieldDelegate>
// IBOUtlet 修饰的属性,是Xib/SB 中的控件
// 1.实心已经关联
@property (weak, nonatomic) IBOutlet UITextField *userNameTextFild;
// 2.空心是未关联
@property (weak, nonatomic)IBOutlet UITextField *passSWord;
// 3. Xib/SB中控件与VC自定义Cell关联 后,如果属性被删处,对应控件的关联也应删除()右键查看控件
// 如果控件非常多,出现问题无从下手
// 查看崩溃信息中
//关键字key:e
@end

@implementation FirstXibViewContoller
// 如果不更改Button的一些属性,直接拖成方法即可

- (IBAction)sender:(id)sender {
    
    NSLog(@"登录成功");
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
